package com.shun.base.api;

import com.shun.base.dto.SysLoginLogAddDto;
import com.shun.base.dto.SysOperLogDto;
import com.shun.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 *  基础Feign接口
 * </p>
 *
 * @author clever
 * @since 2021-09-27
 */
@FeignClient(contextId = "shunBaseApi",value = "shun-base",fallback = ShunBaseApiFallbackClient.class)
public interface ShunBaseApi {

    /**
     * 检查用户账号和密码匹配
     * @return
     */
    @PostMapping("/base/sysLog/v1/addLogin")
    public R addSysLoginLog(@RequestBody SysLoginLogAddDto sysLoginLogDto);

    /**
     * 检查用户账号和密码匹配
     * @return
     */
    @PostMapping("/base/sysLog/v1/addOper")
    public R addSysOperLog(@RequestBody SysOperLogDto sysOperLogDto);
}